Optimal. Leaf size=111 \[ \frac {1}{128} (48 a+35 b) x-\frac {(80 a+93 b) \cosh (c+d x) \sinh (c+d x)}{128 d}+\frac {(48 a+163 b) \cosh ^3(c+d x) \sinh (c+d x)}{192 d}-\frac {25 b \cosh ^5(c+d x) \sinh (c+d x)}{48 d}+\frac {b \cosh ^7(c+d x) \sinh (c+d x)}{8 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.11, antiderivative size = 111, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.286, Rules used = {3296, 1271,
1828, 1171, 393, 212} \begin {gather*} \frac {(48 a+163 b) \sinh (c+d x) \cosh ^3(c+d x)}{192 d}-\frac {(80 a+93 b) \sinh (c+d x) \cosh (c+d x)}{128 d}+\frac {1}{128} x (48 a+35 b)+\frac {b \sinh (c+d x) \cosh ^7(c+d x)}{8 d}-\frac {25 b \sinh (c+d x) \cosh ^5(c+d x)}{48 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 393
Rule 1171
Rule 1271
Rule 1828
Rule 3296
Rubi steps
\begin {align*} \int \sinh ^4(c+d x) \left (a+b \sinh ^4(c+d x)\right ) \, dx &=\frac {\text {Subst}\left (\int \frac {x^4 \left (a-2 a x^2+(a+b) x^4\right )}{\left (1-x^2\right )^5} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=\frac {b \cosh ^7(c+d x) \sinh (c+d x)}{8 d}-\frac {\text {Subst}\left (\int \frac {b+8 b x^2-8 (a-b) x^4+8 (a+b) x^6}{\left (1-x^2\right )^4} \, dx,x,\tanh (c+d x)\right )}{8 d}\\ &=-\frac {25 b \cosh ^5(c+d x) \sinh (c+d x)}{48 d}+\frac {b \cosh ^7(c+d x) \sinh (c+d x)}{8 d}+\frac {\text {Subst}\left (\int \frac {19 b+96 b x^2+48 (a+b) x^4}{\left (1-x^2\right )^3} \, dx,x,\tanh (c+d x)\right )}{48 d}\\ &=\frac {(48 a+163 b) \cosh ^3(c+d x) \sinh (c+d x)}{192 d}-\frac {25 b \cosh ^5(c+d x) \sinh (c+d x)}{48 d}+\frac {b \cosh ^7(c+d x) \sinh (c+d x)}{8 d}-\frac {\text {Subst}\left (\int \frac {3 (16 a+29 b)+192 (a+b) x^2}{\left (1-x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{192 d}\\ &=-\frac {(80 a+93 b) \cosh (c+d x) \sinh (c+d x)}{128 d}+\frac {(48 a+163 b) \cosh ^3(c+d x) \sinh (c+d x)}{192 d}-\frac {25 b \cosh ^5(c+d x) \sinh (c+d x)}{48 d}+\frac {b \cosh ^7(c+d x) \sinh (c+d x)}{8 d}+\frac {(48 a+35 b) \text {Subst}\left (\int \frac {1}{1-x^2} \, dx,x,\tanh (c+d x)\right )}{128 d}\\ &=\frac {1}{128} (48 a+35 b) x-\frac {(80 a+93 b) \cosh (c+d x) \sinh (c+d x)}{128 d}+\frac {(48 a+163 b) \cosh ^3(c+d x) \sinh (c+d x)}{192 d}-\frac {25 b \cosh ^5(c+d x) \sinh (c+d x)}{48 d}+\frac {b \cosh ^7(c+d x) \sinh (c+d x)}{8 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 82, normalized size = 0.74 \begin {gather*} \frac {1152 a c+840 b c+1152 a d x+840 b d x-96 (8 a+7 b) \sinh (2 (c+d x))+24 (4 a+7 b) \sinh (4 (c+d x))-32 b \sinh (6 (c+d x))+3 b \sinh (8 (c+d x))}{3072 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 1.13, size = 82, normalized size = 0.74
method | result | size |
default | \(\frac {\left (-\frac {7 b}{16}-\frac {a}{2}\right ) \sinh \left (2 d x +2 c \right )}{2 d}+\frac {\left (\frac {7 b}{32}+\frac {a}{8}\right ) \sinh \left (4 d x +4 c \right )}{4 d}+\frac {3 a x}{8}+\frac {35 b x}{128}-\frac {b \sinh \left (6 d x +6 c \right )}{96 d}+\frac {b \sinh \left (8 d x +8 c \right )}{1024 d}\) | \(82\) |
risch | \(\frac {35 b x}{128}+\frac {3 a x}{8}+\frac {b \,{\mathrm e}^{8 d x +8 c}}{2048 d}-\frac {b \,{\mathrm e}^{6 d x +6 c}}{192 d}+\frac {7 \,{\mathrm e}^{4 d x +4 c} b}{256 d}+\frac {{\mathrm e}^{4 d x +4 c} a}{64 d}-\frac {7 b \,{\mathrm e}^{2 d x +2 c}}{64 d}-\frac {{\mathrm e}^{2 d x +2 c} a}{8 d}+\frac {7 \,{\mathrm e}^{-2 d x -2 c} b}{64 d}+\frac {{\mathrm e}^{-2 d x -2 c} a}{8 d}-\frac {7 \,{\mathrm e}^{-4 d x -4 c} b}{256 d}-\frac {{\mathrm e}^{-4 d x -4 c} a}{64 d}+\frac {b \,{\mathrm e}^{-6 d x -6 c}}{192 d}-\frac {b \,{\mathrm e}^{-8 d x -8 c}}{2048 d}\) | \(190\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 175, normalized size = 1.58 \begin {gather*} \frac {1}{64} \, a {\left (24 \, x + \frac {e^{\left (4 \, d x + 4 \, c\right )}}{d} - \frac {8 \, e^{\left (2 \, d x + 2 \, c\right )}}{d} + \frac {8 \, e^{\left (-2 \, d x - 2 \, c\right )}}{d} - \frac {e^{\left (-4 \, d x - 4 \, c\right )}}{d}\right )} - \frac {1}{6144} \, b {\left (\frac {{\left (32 \, e^{\left (-2 \, d x - 2 \, c\right )} - 168 \, e^{\left (-4 \, d x - 4 \, c\right )} + 672 \, e^{\left (-6 \, d x - 6 \, c\right )} - 3\right )} e^{\left (8 \, d x + 8 \, c\right )}}{d} - \frac {1680 \, {\left (d x + c\right )}}{d} - \frac {672 \, e^{\left (-2 \, d x - 2 \, c\right )} - 168 \, e^{\left (-4 \, d x - 4 \, c\right )} + 32 \, e^{\left (-6 \, d x - 6 \, c\right )} - 3 \, e^{\left (-8 \, d x - 8 \, c\right )}}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.44, size = 174, normalized size = 1.57 \begin {gather*} \frac {3 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{7} + 3 \, {\left (7 \, b \cosh \left (d x + c\right )^{3} - 8 \, b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{5} + {\left (21 \, b \cosh \left (d x + c\right )^{5} - 80 \, b \cosh \left (d x + c\right )^{3} + 12 \, {\left (4 \, a + 7 \, b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{3} + 3 \, {\left (48 \, a + 35 \, b\right )} d x + 3 \, {\left (b \cosh \left (d x + c\right )^{7} - 8 \, b \cosh \left (d x + c\right )^{5} + 4 \, {\left (4 \, a + 7 \, b\right )} \cosh \left (d x + c\right )^{3} - 8 \, {\left (8 \, a + 7 \, b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )}{384 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 306 vs.
\(2 (104) = 208\).
time = 1.22, size = 306, normalized size = 2.76 \begin {gather*} \begin {cases} \frac {3 a x \sinh ^{4}{\left (c + d x \right )}}{8} - \frac {3 a x \sinh ^{2}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{4} + \frac {3 a x \cosh ^{4}{\left (c + d x \right )}}{8} + \frac {5 a \sinh ^{3}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{8 d} - \frac {3 a \sinh {\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{8 d} + \frac {35 b x \sinh ^{8}{\left (c + d x \right )}}{128} - \frac {35 b x \sinh ^{6}{\left (c + d x \right )} \cosh ^{2}{\left (c + d x \right )}}{32} + \frac {105 b x \sinh ^{4}{\left (c + d x \right )} \cosh ^{4}{\left (c + d x \right )}}{64} - \frac {35 b x \sinh ^{2}{\left (c + d x \right )} \cosh ^{6}{\left (c + d x \right )}}{32} + \frac {35 b x \cosh ^{8}{\left (c + d x \right )}}{128} + \frac {93 b \sinh ^{7}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{128 d} - \frac {511 b \sinh ^{5}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{384 d} + \frac {385 b \sinh ^{3}{\left (c + d x \right )} \cosh ^{5}{\left (c + d x \right )}}{384 d} - \frac {35 b \sinh {\left (c + d x \right )} \cosh ^{7}{\left (c + d x \right )}}{128 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh ^{4}{\left (c \right )}\right ) \sinh ^{4}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.44, size = 155, normalized size = 1.40 \begin {gather*} \frac {1}{128} \, {\left (48 \, a + 35 \, b\right )} x + \frac {b e^{\left (8 \, d x + 8 \, c\right )}}{2048 \, d} - \frac {b e^{\left (6 \, d x + 6 \, c\right )}}{192 \, d} + \frac {{\left (4 \, a + 7 \, b\right )} e^{\left (4 \, d x + 4 \, c\right )}}{256 \, d} - \frac {{\left (8 \, a + 7 \, b\right )} e^{\left (2 \, d x + 2 \, c\right )}}{64 \, d} + \frac {{\left (8 \, a + 7 \, b\right )} e^{\left (-2 \, d x - 2 \, c\right )}}{64 \, d} - \frac {{\left (4 \, a + 7 \, b\right )} e^{\left (-4 \, d x - 4 \, c\right )}}{256 \, d} + \frac {b e^{\left (-6 \, d x - 6 \, c\right )}}{192 \, d} - \frac {b e^{\left (-8 \, d x - 8 \, c\right )}}{2048 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.92, size = 88, normalized size = 0.79 \begin {gather*} \frac {12\,a\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )-96\,a\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )-84\,b\,\mathrm {sinh}\left (2\,c+2\,d\,x\right )+21\,b\,\mathrm {sinh}\left (4\,c+4\,d\,x\right )-4\,b\,\mathrm {sinh}\left (6\,c+6\,d\,x\right )+\frac {3\,b\,\mathrm {sinh}\left (8\,c+8\,d\,x\right )}{8}+144\,a\,d\,x+105\,b\,d\,x}{384\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________